/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function closeIt()
{
  return "You are about to quit without saving data from sandbox mode. Are you sure you want to continue?"
}

/**
 * ask the user to confirm changes
 */
function confirmSave(changes) {
    if(!changes){
        return true;
    }
    else{
        return confirm('You made changes in sandbox mode. Continue without saving?');
    }
}
/* Supposed to work  according to some well informed guys ... */
/*
$(window).bind("beforeunload", function(e){
    e.returnValue = "Unsaved changes.";
});
*/
